package com.jrx.anytxn.investor.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.investor.dto.loan.FundInfoRes;
import com.jrx.anytxn.investor.dto.loan.FundRouteLogRes;

import java.util.List;

/**
 * 放款资金源路由记录表Serivce
 *
 * @author yf
 * date 2020/6/28 0028
 * @version V1.0
 **/
public interface ITLFundRouteLogSerivce {


    /**
     * 根据以下条件获取资金源及出资方相关路由信息
     * @author fan.yang
     * date: 2020/6/28 0028 上午 10:04
     * @param customerId 客户ID
     * @return com.jrx.anytxn.investor.dto.loan.FundRouteLogRes
     */
    List<FundRouteLogRes> getFundRouteLogsByFundIdAndCusId(String tenantId, String customerId, String seqNo) throws TxnException;


    /**
     * 根据一下条件查询资金源总放款信息
     * @author fan.yang
     * date: 2020/7/10 0010 上午 11:12
     * @param tenantId 租户ID
     * @param seqNo 放款流水号
     * @param customerId 客户ID
     * @return com.jrx.anytxn.investor.dto.loan.FundInfoRes
     */
    FundInfoRes getFundAndInvestorInfo(String tenantId, String seqNo, String customerId) throws TxnException;
}
